package com.parking.status.sync.netty.server;

import com.parking.status.sync.netty.entity.ResponsePre;
import com.parking.status.sync.netty.util.LocalInfo;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageEncoder;

import java.util.List;

/**
 * Created by Administrator on 2015/9/21.
 */
public class ResponseInitialEncoder extends MessageToMessageEncoder<ResponsePre> {

    @Override
    protected void encode(ChannelHandlerContext channelHandlerContext, ResponsePre content, List<Object> out) throws Exception {
        //TODO 可以添加一些值
        out.add(content);
    }
}